package com.biz.primus.ms.member.dao.ro;

import com.biz.primus.base.redis.annotation.Ro;
import com.biz.primus.base.redis.annotation.RoSortedSet;
import com.biz.primus.base.redis.bean.BaseRedisObject;
import com.biz.primus.model.member.inter.INotice;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 消息（公告）
 *
 * @author jun.liu
 * @date 2017年10月22日
 * @reviewer
 * @see
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Ro(key = "NoticeRo")
@RoSortedSet(key = "list", score = "createTimestamp")
public class NoticeRo extends BaseRedisObject<Long> implements Comparable<NoticeRo>, INotice
{

    private String title;

    private String url;

    private String content;

    @Override
    public int compareTo(NoticeRo arg0) {
        return super.getCreateTimestamp().compareTo(arg0.getCreateTimestamp());
    }

}
